package com.hbx.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author hbx
 * @since 2021-11-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_user")
@ApiModel(value="User对象", description="")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id")
    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    @ApiModelProperty(value = "用户名")
    private String loginName;

    @ApiModelProperty(value = "身份证号")
    private String identity;

    @ApiModelProperty(value = "邮箱地址")
    private String email;

    @ApiModelProperty(value = "昵称")
    private String realName;

    @ApiModelProperty(value = "0女,1男")
    private Integer sex;

    @ApiModelProperty(value = "地址")
    private String address;

    @ApiModelProperty(value = "用户头像")
    private String avator;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "密码")
    private String pwd;

    @ApiModelProperty(value = "1，超级管理员,2，管理员，3,普通用户")
    private Integer type;

    @ApiModelProperty(value = "0 - 不生效   ,  1 - 生效")
    private Integer available;

    @ApiModelProperty(value = "盐")
    private String salt;

    @ApiModelProperty(value = "上次登录时间")
    private Date lastLoginTime;

    @ApiModelProperty(value = "职业")
    private Integer occupation;

    @ApiModelProperty(value = "个性签名")
    private String autoGraph;

    @ApiModelProperty(value = "个性标签")
    private String label;

    @ApiModelProperty(value = "注册时间")
    private Date registerTime;
}
